package com.panwenliang2008.eatwhat.data.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(indices = [Index(value = ["food_name"], unique = true)])
data class Food(
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "food_id")
    val foodId: Int,
    @ColumnInfo(name = "food_name")
    val foodName: String?
)